package com.wk.consul.client;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * Created by wukai on 2017/11/10.
 * ComponentScan注解不配，那么会默认为当前类所在的包下，这样把application放在client包下，则扫描不到controller包（配置basepackages才能扫描到）
 */
@EnableDiscoveryClient
@SpringBootApplication
//@ComponentScan(basePackages = {"com.wk.eureka.controller"})
public class Application {
    public static void main(String[] args){
//        new SpringApplicationBuilder(Application.class).web(true).run(args);
        SpringApplication.run(Application.class,args);
    }
}
